<template>
  <div style="padding: 30px 300px">
    <el-form ref="form" :model="form" label-width="60px">
      <el-form-item label="账号">
        <el-input disabled v-model="form.username"></el-input>
      </el-form-item>
      <el-form-item label="密码">
        <el-input disabled v-model="form.password" type="password"></el-input>
      </el-form-item>
      <el-form-item label="年龄">
        <el-input disabled v-model="form.age"></el-input>
      </el-form-item>
      <el-form-item label="性别" prop="sex">
        <el-input disabled v-model="form.sex"></el-input>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      form: JSON.parse(localStorage.getItem('userInfo'))
    };
  },
};
</script>

<style></style>
